<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
        <form id="adminForm" name="adminForm" method="post">
			<div id="toolbar-box">
				<div class="toolbar">
					<ul>
						<li id="toolbar-new"><a href="index.php?option=com_retailshop&view=myshop&task=newcategory&action=new"><span class="icon-new"></span>New</a></li>
						<li id="toolbar-edit-catagory"><a href="#"><span class="icon-edit"></span>Edit</a></li>
						<li id="toolbar-delete-catagory"><a href="#"><span class="icon-delete"></span>Delete</a></li>
					</ul>
				</div>
				<div class="title">
					<h2>Category Manager: Category</h2>
				</div>
            </div>
				<div id="search-box">
					<input id="search" type="text" title="Search title. Prefix with ID: to search for a product ID." placeholder="Search...">
					<button class="btn" type="submit">Search</button>
					<button onclick="document.id('search').value='';this.form.submit();">Clear</button>
				</div>
            <table width="100%">
                <thead>
                  <tr>
                    <th width="5%"><input type="checkbox" title="Check All" value="" name="checkall-toogle"></th>
                    <th width="95%"><a href="#">Name</a></th>                    
                  </tr>
                </thead>
                <tbody id="table_cate">
				<?php foreach($this->catolog as $catolog){ ?>
					<tr>
						<td><input type="checkbox" title="Check" value="<?php echo $catolog->id; ?>" name="catelog[]"></td>
						<td><a href="index.php?option=com_retailshop&view=myshop&task=editcatelogy&id=<?php echo $catolog->id; ?>"><?php echo substrCustom($catolog->name,0,100) ; ?></a></td>
					</tr>										
					<?php  } ?>				
                </tbody>
                <tfoot>
                  <tr>
                    <td colspan="2">
                     <!--    <div class="pagination">
							<div class="page">
							Page
							<select size="1" class="inputbox" name="limit" id="limit_cate_page">
                              <option value="1" selected="selected">1</option>
                              <option value="2">2</option>
                              <option value="3">3</option>
                            </select>
						  </div>
                          <div class="limit">Display #
                            <select size="1" class="inputbox" name="limit" id="limit_cate">
                              <option value="5">5</option>
                              <option value="10">10</option>
                              <option value="15">15</option>
                              <option selected="selected" value="20">20</option>
                              <option value="25">25</option>
                              <option value="30">30</option>
                              <option value="50">50</option>
                              <option value="100">100</option>
                              <option value="0">All</option>
                            </select>
                          </div>
                      	</div> -->
                      </td>
                  </tr>
                </tfoot>
              </table>
            </form> 		